package com.zfast.spring5.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;


/**
 *
 *
 * @author zgn
 * @email
 * @date 2022-03-11 09:19:32
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_sys_user")
public class User implements Serializable{
    private static final long serialVersionUID=1L;

    @Id
    @Column(name = "id")
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Column(name = "email")
    private String email;

    @Column(name = "login_name")
    private String loginName;

    @Column(name = "name")
    private String name;

    @Column(name = "password")
    private String password;

    @Column(name = "phone")
    private String phone;

    @Column(name = "shop_id")
    private String shopId;

    @Column(name = "state")
    private String state;

    @Column(name = "store_id")
    private String storeId;

    @Column(name = "departid")
    private String departid;

    @Column(name = "departName")
    private String departname;

    //@Column(name = "depart_name")
    //private String departName;

}
